package com.cyy.ba08;

//目标类
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name, Integer age) {
        //给doSome()方法增加一个功能，在doSome()执行之前，输出方法的执行时间
        System.out.println("====目标方法doSome()===");
    }

    @Override
    public String doOther(String name, Integer age) {
        System.out.println("====目标方法doSome()===");
        return "abcd";
    }

    @Override
    public String doFirst(String name, Integer age) {
        System.out.println("===目标方法doFirst()===");
        return "doFirst";
    }

    @Override
    public void doSecond() {
        System.out.println("===目标方法doSecond()===");
        //System.out.println("===目标方法doSecond()==="+(10/0));
    }

    @Override
    public void doThird() {
        System.out.println("===目标方法doThird()===");
    }
}
